package com.kevin.learn.thread;

public class StackDemo {
    
    private static int count = 0;

    public static void main(String[] args) {
        try {
            method01();
        }catch (Throwable e){
            e.printStackTrace();
            System.out.println(count);
        }
    }

    private static void method01() {
        count++;
        method01();
    }
}
